﻿Public Class FormModificarTorneo

    Private Sub btnModBuscarTorneo_Click(sender As Object, e As EventArgs) Handles btnModBuscarTorneo.Click
        FormBuscarTorneo.Show()
        FormBuscarTorneo.formularioDestino = "FormModificarTorneo"
    End Sub

    Private Sub btnModCancelar_Click(sender As Object, e As EventArgs)
        Me.Close()
    End Sub

    Private Sub FormModificarTorneo_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        Me.MdiParent = FormEntrada
    End Sub

    Private Sub btnModAceptar_Click(sender As Object, e As EventArgs) Handles btnModAceptar.Click
        If tbxModNombreTorneo.Text.Length = 0 Then
            ErrorProvider1.SetError(tbxModNombreTorneo, "Los campos no pueden estar vacios")
        Else
            ErrorProvider1.SetError(tbxModNombreTorneo, Nothing)
            Me.Close()
        End If
    End Sub
End Class